package com.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @TableName order
 */
@TableName(value = "orders")
@Data
public class Orders implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     * 订单号(时间戳+随机数)
     */
    @TableId(value = "orders_id")
    private String ordersId;
    /**
     *
     */
    @TableField(value = "user_id")
    private Long userId;


    @TableField(value = "schedule_id")
    private Long scheduleId;
    /**
     *
     */
    @TableField(value = "course_id")
    private Long courseId;
    /**
     *
     */
    @TableField(value = "payment_amount")
    private BigDecimal paymentAmount;
    /**
     * 0-待支付 1-已支付 2-已取消
     */
    @TableField(value = "status")
    private Integer status;
    /**
     * 支付渠道
     */
    @TableField(value = "payment_channel")
    private String paymentChannel;
    /**
     * 第三方交易号
     */
    @TableField(value = "transaction_id")
    private String transactionId;
    /**
     *
     */
    @TableField(value = "create_time")
    private Date createTime;
    @TableField(value = "pay_time")
    private Date payTime;
}